package com.wish.financial.controller;

import com.wish.base.dto.JrRentInstallmentResponseDto;
import com.wish.base.dto.JrRentInstallmentSearchPage;
import com.wish.base.service.IJrProductService;
import com.wish.common.core.web.controller.BaseController;
import com.wish.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName RentInstallController
 * @Description TODO
 * @Author gaozijie
 * @Date 2022/6/5 19:14
 */
@RestController
@RequestMapping("/rentInstall")
public class RentInstallController extends BaseController {
    @Autowired
    private IJrProductService iJrProductService;
    /**
     * 查询【请填写功能名称】列表
     */
    //@PreAuthorize(hasPermi = "financial:product:list")
    @GetMapping("financialList")
    public AjaxResult list(JrRentInstallmentSearchPage jrProduct){
        startPage();
        List<JrRentInstallmentResponseDto> list = iJrProductService.findlist(jrProduct);
        return AjaxResult.success(list);
    }
}
